package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 车型-总成表 set_model_product
 * 
 * @author ruoyi
 */
@Data
@Entity
@Table(name = "set_model_product")
@EqualsAndHashCode(callSuper = true)
@TableName(value = "set_model_product")
@ApiModel(description = "车型-总成表")
public class SetModelProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车型-总成ID */
    @ApiModelProperty(value = "车型-总成ID")
    private Long id;

    /** 车型编码 */
    @ApiModelProperty(value = "车型编码")
    @Excel(name = "车型编码")
    private String modelCode;

    /** 总成编码 */
    @ApiModelProperty(value = "总成编码")
    @Excel(name = "总成编码")
    private String productCode;

    /** 车型-总成状态（0正常 1关闭） */
    @ApiModelProperty(value = "车型-总成状态")
    private String status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelCode", getModelCode())
            .append("productCode", getProductCode())
            .append("status",getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
